<!DOCTYPE html>
<HTML>
<head>
<meta property="og:title" content="{block:PostTitle}{PostTitle}{/block:PostTitle}"/>
<meta property="og:site_name" content="vasconcept-apps.net"/>
<meta property="og:image" content="http://www.vasconcept-apps.net/me.png"/>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes" />
<link media="Screen" href="mymbcss.css" type="text/css" rel="stylesheet" />
<link media="handheld, only screen and (max-width: 480px), only screen and (max-device-width: 480px)" href="mobile.css" type="text/css" rel="stylesheet" />
<!--[if IEMobile]>
<link rel="stylesheet" type="text/css" href="mobile.css" media="screen" />
<![endif]-->
</head>
<title>Dictons</title>
 <Body>
 
 <div class="one">
<?php

$var1 ="";
$var1 = $_GET['AAA'];
//$var2 = ($var1 =="") ? rand(1,3); : $_GET['AAA'];
if($var1 == "")
{
	$var2 = rand(1, 10);
}
else
{
	$var2 = $_GET['AAA'];
}
	$bdd = new PDO('mysql:host=localhost;dbname=Zaman', 'root', 'root');
	$sql = "SELECT * FROM `Zaman` WHERE `Index` =".$var2;
	$reponse = $bdd->query($sql);
	while($donnees = $reponse->fetch())
	{
	//	print($donnees['Index']." "); 
    	print("<div><h1>");
		print($donnees['Proverbe']);
		print("</h1></div>");
		print("</br>");
		print("<div>");
		print("<a name=\"fb_share\" share_url=\"http://localhost:8080/KarimPHP/index2.php?AAA=".$var2."\"></a>");
		print("<a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-url=\"http://www.vasconcept-apps.net/index3.php?AAA=".$var2."\" data-lang=\"fr\">Tweeter</a>");
		print("<iframe src=\"http://www.facebook.com/plugins/like.php?href=http://localhost:8080/KarimPHP/index2.php?AAA=".$var2."\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:210px; height:20px\"></iframe>");
	    print("</div>");
	    
	//	print("</br>");
	
	}
	$reponse->closeCursor();
?>

</div>
</br>

<div class="left">
	<img src="images/dictons.png">
</div>


<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>





 </Body>
</HTML>